import com.dmotiko.general.*
import mx.utils.Delegate

class WebSiteNavButton 
extends BaseClip {
	
	public static var ROLL_OVER:String = "websitenavbutton_rollover";
	public static var ROLL_OUT:String = "websitenavbutton_rollout";
	public static var RELEASE:String = "websitenavbutton_release";
	
	private var bActive:Boolean;
	
	private function WebSiteNavButton() {
		super();
	}
	
	public function setActive(bActive:Boolean):Void {
		trace("WebSiteNavButton setActive= " + bActive);
		this.bActive = bActive;
	}
	public function getActive():Boolean {
		return this.bActive;
	}
	
	public function onRelease(noPropagate:Boolean) {
		if (!noPropagate) dispatchEvent( { target: this, type: RELEASE } );
	}
	public function onRollOver(){
		if(bActive) return;
		dispatchEvent( { target: this, type: ROLL_OVER } );
	}
	public function onRollOut(){
		if(bActive) return;
		dispatchEvent( { target: this, type: ROLL_OUT } );
	}
	
}